package ro.one.gaeql.model;

import java.io.Serializable;

public class Condition implements Serializable {
	private static final long serialVersionUID = 1L;
	
	Operator operator;
	Property property;
	Object expression;
	
	public Condition(Property property, Property property2) {
		this.property = property;
		this.operator = Operator.Equals;
		this.expression = property2;
	}
	
	public Condition(Property property, Operator operator, Object expression) {
		this.property = property;
		this.operator = operator;
		this.expression = expression;
	}
	
	public Operator getOperator() {
		return operator;
	}
	
	public Property getProperty() {
		return property;
	}
	
	
	public Object getExpression() {
		return expression;
	}
}
